import axios from '@/util/request.js'

export function deleteUser(userId) {
    return axios.post("user/delete", userId, axios.textConfig);
}

export function getList() {
    return axios.post("user/findAll");
}

export function saveOrUpdate(path, data) {
    return axios.post(`user/${path}`, data);
}